home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / queries / pgetlayeroptions.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-16  |  972 b   |  42 lines

  1. /*
  2.  *--- PGetLayerOptions.cpp ---------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sat, Oct 21, 1995 @ 8:58 AM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * header file PGetColorInfo.h
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetLayerOptions.h"
  12. #include "PQuery.h"
  13. #include "PRequestBuf.h"
  14. #include "PReplyBuf.h"
  15.  
  16. PGetLayerOptions::PGetLayerOptions(const char * sLayerName)
  17. :PHandleQuery()
  18. {
  19.     PRequestBuf request(strlen((const char *)sLayerName) + 2);
  20.  
  21.     request    << sLayerName;
  22.     
  23.     PQuery query(pm_getlayeroptions, request, itsHandle);
  24.     InitHandle();
  25.     InitReply();    
  26. }
  27.  
  28. void PGetLayerOptions::InitReply()
  29. {
  30.     PReplyBuf reply(replyPtr);
  31.     
  32.     reply     >> nShow
  33.             >> nLock
  34.             >> nColorIndex
  35.             >> lRed
  36.             >> lGreen
  37.             >> lBlue;
  38.             
  39. }
  40.  
  41. // end of PGetLayerOptions.cpp
  42.